package com.mall.dubbo.api;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.model.domain.PmsProductCategory;

import java.util.List;

/**
 * @author xyiaao
 * @description 针对表【pms_product_category(产品分类)】的数据库操作Api
 * @createDate 2022-03-29 19:46:09
 */
public interface PmsProductCategoryApi extends IService<PmsProductCategory> {

    PmsProductCategory findByName(String name);

    void saveCategory(PmsProductCategory productCategory);

    void deleteCategory(Long id);

    Page<PmsProductCategory> findParentId(Long parentId, Integer pageNum, Integer pageSize);

    List<PmsProductCategory> findByIds(Long[] ids);

    void updateCategory(PmsProductCategory category);

    PmsProductCategory findById(Integer id);

    List<PmsProductCategory> findByParentId(long l);
}
